package com.wanggsx.library.base.views.radiobutton;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.HorizontalScrollView;

/**
 * Created by wanggsx on 15/12/11.
 */
public class ScrollViewForRadioButton extends HorizontalScrollView {

    public ScrollViewForRadioButton(Context context) {
        super(context);
    }

    public ScrollViewForRadioButton(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        getParent().requestDisallowInterceptTouchEvent(false);
        return super.dispatchTouchEvent(ev);
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        return false;
    }
}
